package com.cqjtu.graduation.dao;

import com.cqjtu.graduation.entity.FoodTypeListDO;
import com.cqjtu.graduation.entity.OrderDO;

import java.util.List;

/**
 * order表相关操作接口
 */
public interface OrderDAO {
    /**
     * 查询所有订单信息
     * @return
     */
    public List<OrderDO> listOrderDO();

    /**
     * 增加订单
     * @param orderDO
     */
    public void saveOrderDO(OrderDO orderDO);

    /**
     * 条件加分页查询订单
     * @param orderDO
     * @return
     */
    public List<OrderDO> listOrderDONoPaid(OrderDO orderDO);

    /**
     * 根据条件返回订单数目
     * @param orderDO
     * @return
     */
    public Long countNoPaidOrderByCondition(OrderDO orderDO);
    public Integer getMaxOrderId();
    public void updateOrderState(OrderDO orderDO);
    public OrderDO getByOrderId(OrderDO orderDO);
    /**
     * 查询订单中菜品烹制状态
     * @return
     */
    public List<OrderDO> findOrderFoodStatus();

    /**
     * 查询订单中餐桌号
     * @return
     */
    List<OrderDO> findTableNumber();

    /**
     * 根据订单号查询菜品清单
     * @param orderId
     * @return
     */
    List<FoodTypeListDO> findFoodType(Integer orderId);
}
